package com.magnificent.atlantis.client.data.task.creator;

import com.magnificent.atlantis.client.data.task.common.AbstractTask;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * User: Babanin
 * Date: 04.02.2009
 * Time: 13:36:53
 */
@XmlRootElement(name = "task")
public abstract class AbstractCreatorTask extends AbstractTask {
    public boolean isBasicTask() {
        return this instanceof CreatorBasicTask;
    }

    public CreatorBasicTask getBasicTask() {
        return (CreatorBasicTask) this;
    }

    public CreatorMeetingTask getMeetingTask() {
        return (CreatorMeetingTask) this;
    }

    public String toString() {
        return getName();
    }

    public boolean isMeetingTask() {
        return this instanceof CreatorMeetingTask;
    }
}
